import request from '@/utils/request'

// 查询微信支付记录列表
export function listPayorder(query) {
  return request({
    url: '/store/payorder/list',
    method: 'get',
    params: query
  })
}

// 查询微信支付记录详细
export function getPayorder(outTradeNo) {
  return request({
    url: '/store/payorder/' + outTradeNo,
    method: 'get'
  })
}

// 新增微信支付记录
export function addPayorder(data) {
  return request({
    url: '/store/payorder',
    method: 'post',
    data: data
  })
}

// 修改微信支付记录
export function updatePayorder(data) {
  return request({
    url: '/store/payorder',
    method: 'put',
    data: data
  })
}

// 删除微信支付记录
export function delPayorder(outTradeNo) {
  return request({
    url: '/store/payorder/' + outTradeNo,
    method: 'delete'
  })
}
